рони,
Делаю в точности по вашему примеру, но ничего не срабатывает
<script type="text/javascript">
function auth() {
var email = $("#email").val();
var pass = $("#password").val();
var hash = $("#hash").val();
$.post('auth.php', {
email: email,
password: pass,
hash: hash
},
function (html) {
$("#system_msg").html(html);
}
);
return false
}
</script>
<div id="system_msg" align="center"></div>
<form name="auth" id="auth" method="post" class="login-form" action="#" onsubmit="return auth()">
<input type="text"name="email" id="email" class="input username" value="E-mail" onfocus="this.value=''" required="">
<input type="password" name="password" id="password" class="input password" value="Пароль" onfocus="this.value=''" required="">
<input type="hidden" name="hash" id="hash" value="<?=md5(randomCode($code));?>" required="">
<input type="submit" name="submit" value="ВОЙТИ" class="button">
</form>
..даже если в файле auth.php нет кода..